import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Warehouse/"
import { getBaseUrl } from "@/utils/appUrls.js"
//获取总部仓库列表
export function GetWarehouseList(path) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetWarehouseList" + path,
    })
}
//获取用户默认仓库
export function GetUserDefaultWarehouse() {
    return http.post({
        url: getBaseUrl() + serviceName + "GetUserDefaultWarehouse",
    })
}

//获取直发仓库列表
export function GetDirectSaleWarehouseList() {
    return http.post({
        url: getBaseUrl() + serviceName + "GetDirectSaleWarehouseList",
    })
}

//获取多仓列表
export function getAllWareHouseList() {
    return http.post({
        url: getBaseUrl() + serviceName + "GetWarehouseList",
    })
}

//获取直发仓库信息
export function GetDirectSaleWarehouse(id) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetDirectSaleWarehouse?id=" + id,
    })
}
